package cn.livingCloud.dto;

import cn.livingCloud.entity.core.CaseCategory;

import java.util.List;

/**
 * Created by 唐旭 on 2016/6/2.
 */
public class CaseCategoryListDto extends Page<CaseCategoryDto> {
    private String name;
    private String parentUuid;
    private CaseCategoryDto parentCategoryDto;

    public CaseCategoryListDto() {
    }

    @Override
    public void addAllList(List listItem) {
        for (Object o : listItem) {
            list.add(new CaseCategoryDto((CaseCategory) o));
        }
    }

    public String getName() {
        return name;
    }

    public CaseCategoryListDto setName(String name) {
        this.name = name;
        return this;
    }

    public String getParentUuid() {
        return parentUuid;
    }

    public CaseCategoryListDto setParentUuid(String parentUuid) {
        this.parentUuid = parentUuid;
        return this;
    }

    public CaseCategoryDto getParentCategoryDto() {
        return parentCategoryDto;
    }

    public CaseCategoryListDto setParentCategoryDto(CaseCategoryDto parentCategoryDto) {
        this.parentCategoryDto = parentCategoryDto;
        return this;
    }
}
